package routers

import (
	"github.com/gin-gonic/gin"
	"video-handle/v1/routers/api/v1"
)

// InitRouter initialize routing information
func InitRouter() *gin.Engine {
	r :=gin.New()

	r.Use(gin.Logger())
	r.Use(gin.Recovery())

	apiV1 := r.Group("/api/v1")
	{
		apiV1.GET("/handleVideo", v1.HandlVideo)
	}
	return r
}
